import Vue from 'vue'
import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import siderbarEn from './en'
import siderbarZh from './zh'
// 翻译
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
export default new VueI18n({
  locale: 'en',
  messages: {
    en: {
      morning: 'morning',
      niceday: 'have a good every day',
      ...enLocale,
      confirmDel: 'Are you sure?',
      ...siderbarEn

    },
    zh: {
      morning: '早上好',
      niceday: '早安，管理员，祝你开心每一天！',
      ...zhLocale,
      confirmDel: '请问确认删除？',
      ...siderbarZh
    }
  }
})
